// 路由文件
import { createRouter, createWebHistory } from "vue-router";

import Home from '../view/Home.vue';

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

router.beforeEach((to, from, next) => {
    // to and from are both route objects. must call `next`.
})

export default router;
